package cn.ds.assets.module.assets.convert.project;

import java.util.*;

import cn.ds.assets.framework.common.pojo.PageResult;

import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;
import cn.ds.assets.module.assets.controller.admin.project.vo.*;
import cn.ds.assets.module.assets.dal.dataobject.project.BaseProjectDO;

/**
 * 项目 Convert
 *
 * @author admin
 */
@Mapper
public interface BaseProjectConvert {

    BaseProjectConvert INSTANCE = Mappers.getMapper(BaseProjectConvert.class);

    BaseProjectDO convert(BaseProjectCreateReqVO bean);

    BaseProjectDO convert(BaseProjectUpdateReqVO bean);

    BaseProjectRespVO convert(BaseProjectDO bean);

    List<BaseProjectRespVO> convertList(List<BaseProjectDO> list);

    PageResult<BaseProjectRespVO> convertPage(PageResult<BaseProjectDO> page);

    List<BaseProjectExcelVO> convertList02(List<BaseProjectDO> list);

}
